package net.comm.shequ.web.form;

import net.comm.page.PageCtr;

import org.apache.struts.action.*;

public class YwMemberForm extends ActionForm {

	private static final long serialVersionUID = 1L;
	private static final String KEY_SPLIT = "#,##,#,#,#";
	
	private String QryOrderby;	//	排序字符串

	private int QryYeweiID;	//	业委ID

	private int YeweiID;	//	业委ID
	private int UserID;		//	用户ID
	private String Post;	//	职位
	private String Status;	//	状态
	private String Mtime;	//	最后修改时间
	

	public YwMemberForm() {
		super();
		// TODO Auto-generated constructor stub
		Clear();
	}
	public void Clear() {
		
		QryOrderby = "";
		
		QryYeweiID = 0;
		
		YeweiID = 0;	//	业委ID
		UserID = 0;	//	用户ID
		Post = "";	//	职位
		Status = "";	//	状态
		Mtime = "";	//	最后修改时间				
	}

	/**
	 * 查询当前页主键值串
	 */
	private String key = "";

	/**
	 * 查询上上页主键值串
	 */
	private String lastKey = "";
	

	/**
	 * 分页控制对象
	 */
	private PageCtr page;
	


	private String action = "";

	public PageCtr getPage() {
		return page;
	}

	public void setPage(PageCtr page) {
		this.page = page;
	}
	
	/**
	 * @param key the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String[] array) {
		if(key != null && key.trim().length() > 0) {
			key = "";
		}
		
		StringBuffer keyBuff = new StringBuffer();
		for (int i = 0; i < array.length; i++) 
		{
			/**
			 * 防止空字符串引起的split方法异常
			 */
			if(array[i] == null || array[i].length() == 0) {
				keyBuff.append(" ");
			} else {
				keyBuff.append(array[i]);
			}
			
			keyBuff.append(KEY_SPLIT);
		}
		
		key = keyBuff.toString();		
	}
	
	/**
	 * 获取lastKey值
	 * @return
	 */
	public String[] lastKey()
	{
		if(lastKey == null || lastKey.trim().length() == 0) {
			return null;
		}
		
		return lastKey.split(KEY_SPLIT);
	}
	
	public String getLastKey() {
		return lastKey;
	}

	public void setLastKey(String lastKey) {
		this.lastKey = lastKey;
	}

	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	
	public static String getKEY_SPLIT() {
		return KEY_SPLIT;
	}


	public static long getSerialVersionUID() {
		return serialVersionUID;
	}
	public String getQryOrderby() {
		return QryOrderby;
	}
	public int getYeweiID() {
		return YeweiID;
	}
	public int getUserID() {
		return UserID;
	}
	public String getPost() {
		return Post;
	}
	public String getStatus() {
		return Status;
	}
	public String getMtime() {
		return Mtime;
	}
	public void setQryOrderby(String qryOrderby) {
		QryOrderby = qryOrderby;
	}
	public void setYeweiID(int yeweiID) {
		YeweiID = yeweiID;
	}
	public void setUserID(int userID) {
		UserID = userID;
	}
	public void setPost(String post) {
		Post = post;
	}
	public void setStatus(String status) {
		Status = status;
	}
	public void setMtime(String mtime) {
		Mtime = mtime;
	}
	public int getQryYeweiID() {
		return QryYeweiID;
	}
	public void setQryYeweiID(int qryYeweiID) {
		QryYeweiID = qryYeweiID;
	}



	
}